<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="en">
<%
request.setCharacterEncoding("utf-8");

%>
<head>
  <meta charset="utf-8">
  <title>Bootstrap 3, from LayoutIt!</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="">

	<!--link rel="stylesheet/less" href="less/bootstrap.less" type="text/css" /-->
	<!--link rel="stylesheet/less" href="less/responsive.less" type="text/css" /-->
	<!--script src="js/less-1.3.3.min.js"></script-->
	<!--append ‘#!watch’ to the browser URL, then refresh the page. -->
	
	<link href="css/bootstrap.min.css" rel="stylesheet">
	<link href="css/style.css" rel="stylesheet">

  <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
  <!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
  <![endif]-->

  <!-- Fav and touch icons -->
  <link rel="apple-touch-icon-precomposed" sizes="144x144" href="img/apple-touch-icon-144-precomposed.png">
  <link rel="apple-touch-icon-precomposed" sizes="114x114" href="img/apple-touch-icon-114-precomposed.png">
  <link rel="apple-touch-icon-precomposed" sizes="72x72" href="img/apple-touch-icon-72-precomposed.png">
  <link rel="apple-touch-icon-precomposed" href="img/apple-touch-icon-57-precomposed.png">
  <link rel="shortcut icon" href="img/favicon.png">
  
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/scripts.js"></script>
</head>

<body>
<div class="container">
	<div class="row clearfix">
    <jsp:include page="../nav.jsp" />
		<div class="col-md-12 column">
			<h3>
				个人信息
			</h3>
		</div>
	</div>
	<div class="row clearfix">
		<div class="col-md-8 column ">
			<form role="form" class="form-horizontal" action="updateUser.action" method="post">
			<div class="form-group">
					 <label for="exampleInputPassword1" class="col-sm-3 control-label">学号</label>
                     <div class="col-xs-4 has-warning">
                     <input type="text" class="form-control" id="inputSuccess2" name="code" value="${user.code}"
                     disabled="disabled" />
				     </div>
				     
             </div>
             <div class="form-group">
					 
				</div>
				<div class="form-group">
					 <label for="exampleInputEmail1" class="col-sm-3 control-label">用户名</label>
                     <div class="col-xs-4 has-warning">
                     <input type="text" class="form-control" id="exampleInput" name="grade" value="${user.userName}" disabled="disabled"/>
                     </div>
                    
				</div>
				<div class="form-group">
					 
				</div>
				<div class="form-group">
					  <label for="exampleInput" class="col-sm-3 control-label">性别</label>
                     <div class="col-xs-4 has-warning">
                     
                     <c:if test="${user.sex == 1}">
							<span class="input-group-addon" style="color:black;"> 
							男 
							</span>
					</c:if>
					 <c:if test="${user.sex == 0}">
							<span class="input-group-addon"> 
							女
							</span>
					</c:if>
							
                     </div>
                     
				</div>
				<div class="form-group">
					 
				</div>
                <div class="form-group">
					 
                     <label for="exampleInput" class="col-sm-3 control-label">年级</label>
                     <div class="col-xs-4 has-warning">
                     <input type="text" class="form-control" id="exampleInput" name="grade" value="${user.grade}" disabled="disabled" />
                     </div>
				</div>
				<div class="form-group">
					 
				</div>
                <div class="form-group">
					 <label for="exampleInput" class="col-sm-3 control-label">地址</label>
                     <div class="col-xs-4 has-warning">
                     <input type="text" class="form-control" id="exampleInput" name="addrezz" value="${user.addrezz}" disabled="disabled" />
                     </div>
                     
				</div>
                <div class="form-group">
					 
				</div>
				<div class="form-group">
					<label for="exampleInput" class="col-sm-3 control-label">联系电话</label>
                     <div class="col-xs-4 has-warning" >
                     <input type="text" class="form-control" id="exampleInput" name="phone" value="${user.phone}" disabled="disabled" >
                     </div> 
				</div>
				<div class="form-group">
					 
				</div>
				<div class="form-group">
					 <label for="exampleInput" class="col-sm-3 control-label">E-mail</label>
                     <div class="col-xs-5 has-warning">
                     <input type="text" class="form-control" id="exampleInput" size="20" name="email" value="${user.email}" disabled="disabled" >
                     </div>
				</div>
			</form>
		</div>
		<div class="col-md-4 column has-warning">
			<c:if test="${user.photo == ''}">
				<img alt="140x140" src="http://lorempixel.com/140/140/" width="150" height="150">
			</c:if>
					
			<c:if test="${user.photo != ''}">
				<img alt="140x140" src="img/user/${user.photo}" width="150" height="150">
			</c:if>
           
		</div>
	</div>
</div>
</body>
</html>
